package com.rightsidetech.system.dtos.request.news;

import com.rightsidetech.commom.base.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class NewsPageReq extends PageRequest implements Serializable {

    @ApiModelProperty("标题")
    private String topic;

    @ApiModelProperty("发布对象 1-代理商app 2-门店app")
    private Byte platform;

    @ApiModelProperty("分类id")
    private Long typeId;

    @ApiModelProperty("开始时间 yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间 yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
